package top.kaoshanji.s1ch09c;

import org.springframework.stereotype.Service;
import org.springframework.web.context.annotation.ApplicationScope;

/**
 * 代码清单-s1ch09c-198页a：使用@ApplicationScope注解定义bean的作用域为应用作用域
 * @author kaoshanji
 * ^_^
 * create time 2025/4/30 17:08
 */
@Service
@ApplicationScope
public class LoginCountService {

    private int count;

    public void increment() {
        count++;
    }

    public int getCount() {
        return count;
    }

}
